package com.tvunetworks.center.device.config;

import com.tvunetworks.center.device.service.PidPortMappingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author Etan Yang
 * @create: 2021/10/14 16:25
 */

@Slf4j
@Component
public class MyCommandLineRunner implements CommandLineRunner {
    @Autowired
    private PidPortMappingService pidPortMappingService;


    @Override
    public void run(String... args) throws Exception {
        pidPortMappingService.refreshPirPortMappingCache();
    }
}
